<?php
namespace app\admin\validate;
use think\Validate;
class User extends Validate
{
	//验证规则
protected $rule = [
['username','max:10','用户名不能超过10字符'],
['name','max:10','姓名最多为10字符'],
['password','^[a-zA-Z]\w{5,17}$','密码必须以字母开头，长度在6~18之间，只能包含字符、数字和下划线'],
['mail','email','电子邮箱格式不正确'],
['phone', '^1[35678]\d{9}$', '请输入正确的手机号'],


   ];
}